<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>九九乘法表</title>

</head>

<body>
    <table>
        <script>
            var num;
            for (var i = 1; i <= 9; i++) {
                document.write("<tr>");
                for (var j = 1; j <= i; j++) {
                    num = i * j;
                    document.write("<td style='border:1px solid;'>");
                    document.write(i + " * " + j + " = " + num + "&nbsp&nbsp&nbsp");
                    document.write("</td>");
                }
                document.write("<tr/>");
            }
        </script>
    </table>
</body>

</html>